/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upf.grupoe.p2ppicture.XMLstructure.implementations;

import edu.upf.grupoe.p2ppicture.XMLstructure.interfaces.Image;
import java.util.Date;
import java.util.List;

/**
 *
 * @author Alberto Llor
 */
public class ImageImpl implements Image {

    // first we have to declare the private variables that will be modified by the correspondent methods
    private int imageId;
    private String path;
    private String description;
    private String format;
    private Date data;
    private int[] resolution;
    private long size;
    private String unit;
    private List<String> keywords;
    private String ontology;
    
    public ImageImpl(int id, String path, String description, String format, Date d, int[] res, long s, String u, List<String> k, String o){
        setID(id);
        setPath(path);
        setDescription(description);
        setFormat(format);
        setDate(d);
        setResolution(res);
        setUnit(u);
        setSize(s);
        setKeywords(k);
        setOntology(o);        
    }

    public void setID(int id) {
        imageId = id;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public void setDate(Date d) {
        this.data = d;
    }

    public void setResolution(int[] res) {
        this.resolution = res;
    }

    public void setSize(long s) {
        this.size = s;
    }

    public void setUnit(String u) {
        this.unit = u;
    }

    public void setKeywords(List<String> k) {
        this.keywords = k;
    }

    public void setOntology(String o) {
        this.ontology = o;
    }
    
    
    //Getters

    public int getID() {
        return imageId;
    }

    public String getPath() {
        return path;
    }

    public String getDescription() {
        return description;
    }

    public String getFormat() {
        return format;
    }

    public Date getDate() {
        return data;
    }

    public int[] getResolution() {
        return resolution;
    }

    public long getSize() {
        return size;
    }

    public String getUnit() {
        return unit;
    }

    public List<String> getKeywords() {
        return keywords;
    }

    public String getOntology() {
        return ontology;
    }
}
